/**
 * Created by PanJiaChen on 16/11/18.
 */

/**
 * @param {string} path
 * @returns {Boolean}
 */
export function isExternal (path) {
  return /^(https?:|mailto:|tel:)/.test(path)
}

/**
 * @param {string} str
 * @returns {Boolean}
 */
// 登录表单校验规则
export function validaMobile (str) {
  const reg = /1[3|5|8]\d{9}/
  return reg.test(str)
}
export function validPassword (str) {
  const reg = /[A-Z]{1,}[a-z]{1,}[0-9]{1,}/
  return reg.test(str)
}
